package com.itcoon.transform4j.demo.web.vo;


import com.itcoon.transform.base.annotation.AssembleModel;
import com.itcoon.transform.base.annotation.AssembleModelProperty;
import com.itcoon.transform4j.demo.domain.Book;

@AssembleModel(from = Book.class)
public interface BookVIO {

    @AssembleModelProperty
    Long getId();

    @AssembleModelProperty
    String getName();

    @AssembleModelProperty(mapValue = "author.name")
    String getAuthorName();

    @AssembleModelProperty(mapValue = "author.company.name")
    String getAuthorCompanyName();

    @AssembleModelProperty(mapValue = "author.company.location")
    String getAuthorCompanyLocation();
}
